[INFO] cloning repository https://github.com/SHaaD94/AICup2022
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SHaaD94/AICup2022" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d2b5e62223758f918886089ded1294d8b6ba1cc3
[INFO] checking SHaaD94/AICup2022 against master#4eb62535fc12dd1a63fd43a4173e224e79313c4d for pr-158816
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSHaaD94%2FAICup2022" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/SHaaD94/AICup2022
[INFO] finished tweaking git repo https://github.com/SHaaD94/AICup2022
[INFO] tweaked toml for git repo https://github.com/SHaaD94/AICup2022 written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/SHaaD94/AICup2022 on toolchain 4eb62535fc12dd1a63fd43a4173e224e79313c4d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/SHaaD94/AICup2022 already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded rand_core v0.6.3
[INFO] [stderr]   Downloaded num_threads v0.1.6
[INFO] [stderr]   Downloaded time v0.3.11
[INFO] [stderr]   Downloaded unicode-ident v1.0.1
[INFO] [stderr]   Downloaded aho-corasick v0.7.18
[INFO] [stderr]   Downloaded digest v0.8.1
[INFO] [stderr]   Downloaded rawpointer v0.2.1
[INFO] [stderr]   Downloaded block-padding v0.1.5
[INFO] [stderr]   Downloaded either v1.7.0
[INFO] [stderr]   Downloaded block-buffer v0.7.3
[INFO] [stderr]   Downloaded pest_generator v2.1.3
[INFO] [stderr]   Downloaded thiserror-impl v1.0.31
[INFO] [stderr]   Downloaded ppv-lite86 v0.2.16
[INFO] [stderr]   Downloaded byteorder v1.4.3
[INFO] [stderr]   Downloaded generic-array v0.12.4
[INFO] [stderr]   Downloaded pest_derive v2.1.0
[INFO] [stderr]   Downloaded sha-1 v0.8.2
[INFO] [stderr]   Downloaded opaque-debug v0.2.3
[INFO] [stderr]   Downloaded fake-simd v0.1.2
[INFO] [stderr]   Downloaded maplit v1.0.2
[INFO] [stderr]   Downloaded ndarray-npy v0.8.1
[INFO] [stderr]   Downloaded quote v1.0.20
[INFO] [stderr]   Downloaded byte-tools v0.3.1
[INFO] [stderr]   Downloaded thiserror v1.0.31
[INFO] [stderr]   Downloaded num-complex v0.4.2
[INFO] [stderr]   Downloaded zip v0.5.13
[INFO] [stderr]   Downloaded ucd-trie v0.1.4
[INFO] [stderr]   Downloaded py_literal v0.4.0
[INFO] [stderr]   Downloaded getrandom v0.2.7
[INFO] [stderr]   Downloaded pest_meta v2.1.3
[INFO] [stderr]   Downloaded proc-macro2 v1.0.40
[INFO] [stderr]   Downloaded miniz_oxide v0.5.3
[INFO] [stderr]   Downloaded matrixmultiply v0.3.2
[INFO] [stderr]   Downloaded anyhow v1.0.58
[INFO] [stderr]   Downloaded pest v2.1.3
[INFO] [stderr]   Downloaded num-bigint v0.4.3
[INFO] [stderr]   Downloaded itertools v0.10.3
[INFO] [stderr]   Downloaded chrono v0.4.19
[INFO] [stderr]   Downloaded syn v1.0.98
[INFO] [stderr]   Downloaded ndarray v0.15.4
[INFO] [stderr]   Downloaded libc v0.2.126
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0
[INFO] running `Command { std: "docker" "start" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0" "/opt/rustwide/cargo-home/bin/cargo" "+4eb62535fc12dd1a63fd43a4173e224e79313c4d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.40
[INFO] [stderr]    Compiling unicode-ident v1.0.1
[INFO] [stderr]    Compiling quote v1.0.20
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]    Compiling syn v1.0.98
[INFO] [stderr]    Compiling libc v0.2.126
[INFO] [stderr]    Compiling num-integer v0.1.45
[INFO] [stderr]    Compiling ucd-trie v0.1.4
[INFO] [stderr]    Compiling crc32fast v1.3.2
[INFO] [stderr]    Compiling maplit v1.0.2
[INFO] [stderr]    Compiling num-bigint v0.4.3
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]     Checking adler v1.0.2
[INFO] [stderr]     Checking rawpointer v0.2.1
[INFO] [stderr]     Checking byteorder v1.4.3
[INFO] [stderr]    Compiling anyhow v1.0.58
[INFO] [stderr]     Checking matrixmultiply v0.3.2
[INFO] [stderr]     Checking ppv-lite86 v0.2.16
[INFO] [stderr]    Compiling pest v2.1.3
[INFO] [stderr]     Checking miniz_oxide v0.5.3
[INFO] [stderr]     Checking num_threads v0.1.6
[INFO] [stderr]     Checking either v1.7.0
[INFO] [stderr]     Checking regex-syntax v0.6.27
[INFO] [stderr]     Checking itertools v0.10.3
[INFO] [stderr]     Checking flate2 v1.0.24
[INFO] [stderr]     Checking aho-corasick v0.7.18
[INFO] [stderr]     Checking getrandom v0.2.7
[INFO] [stderr]     Checking time v0.1.44
[INFO] [stderr]     Checking time v0.3.11
[INFO] [stderr]     Checking rand_core v0.6.3
[INFO] [stderr]    Compiling pest_meta v2.1.3
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking num-complex v0.4.2
[INFO] [stderr]     Checking chrono v0.4.19
[INFO] [stderr]     Checking ndarray v0.15.4
[INFO] [stderr]     Checking regex v1.6.0
[INFO] [stderr]    Compiling pest_generator v2.1.3
[INFO] [stderr]    Compiling thiserror-impl v1.0.31
[INFO] [stderr]    Compiling pest_derive v2.1.0
[INFO] [stderr]     Checking py_literal v0.4.0
[INFO] [stderr]     Checking thiserror v1.0.31
[INFO] [stderr]     Checking zip v0.5.13
[INFO] [stderr]     Checking ndarray-npy v0.8.1
[INFO] [stderr]     Checking ai-cup-22 v1.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/model/unit.rs:142:58
[INFO] [stdout]     |
[INFO] [stdout] 142 |                 let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0)));
[INFO] [stdout]     |                                                          ^                         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 142 -                 let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0)));
[INFO] [stdout] 142 +                 let next_vec = rotate(center, cur_angle, radius * (i as f64 + 1.0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Pointer`
[INFO] [stdout]  --> src/model/vec2.rs:3:36
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::{Display, Formatter, Pointer};
[INFO] [stdout]   |                                    ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Aim`, `Pickup`, and `UseShieldPotion`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:3:33
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::model::ActionOrder::{Aim, Pickup, UseShieldPotion};
[INFO] [stdout]   |                                 ^^^  ^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::model::Item::ShieldPotions`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::Item::ShieldPotions;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ActionOrder` and `Loot`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:5:20
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::model::{ActionOrder, Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]   |                    ^^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_all_enemy_units`, `get_constants`, `get_loot`, `get_obstacles`, and `remove_loot`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     get_all_enemy_units, get_constants, get_game, get_loot, get_obstacles, remove_loot,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^            ^^^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::strategy::loot::best_loot`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::strategy::loot::best_loot;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles`
[INFO] [stdout]   --> src/strategy/behaviour/behaviour.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::strategy::util::intersects_with_obstacles;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `itertools::Itertools`
[INFO] [stdout]   --> src/strategy/behaviour/behaviour.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use itertools::Itertools;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]   --> src/strategy/behaviour/behaviour.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::cmp::min;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TEAL` and `TRANSPARENT_TEAL`
[INFO] [stdout]  --> src/strategy/behaviour/fighting.rs:2:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, RED, TEAL, TRANSPARENT_BLUE, TRANSPARENT_TEAL};
[INFO] [stdout]   |                                   ^^^^                    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `WeaponProperties`
[INFO] [stdout]  --> src/strategy/behaviour/fighting.rs:4:53
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::{Obstacle, Unit, UnitOrder, Vec2, WeaponProperties};
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `intersects_with_obstacles`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:13:48
[INFO] [stdout]    |
[INFO] [stdout] 13 |     bullet_trace_score, get_projectile_traces, intersects_with_obstacles,
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `all`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout] 16 | use itertools::{all, Itertools};
[INFO] [stdout]    |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `min`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:17:21
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::cmp::{max, min};
[INFO] [stdout]    |                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::collections::HashMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use std::fmt;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Formatter` and `Pointer`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:20:16
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::fmt::{Formatter, Pointer};
[INFO] [stdout]    |                ^^^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Display`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::path::Display;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN};
[INFO] [stdout]   |                              ^^^^^  ^^^                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Pickup`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::model::ActionOrder::Pickup;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Loot`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:4:26
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::{Game, Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]   |                          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `remove_loot`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:8:77
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::strategy::holder::{book_loot, get_constants, get_game, get_loot, remove_loot};
[INFO] [stdout]   |                                                                             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `bullet_trace_score` and `get_projectile_traces`
[INFO] [stdout]   --> src/strategy/behaviour/ghosting.rs:10:29
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::strategy::util::{bullet_trace_score, get_projectile_traces, rotate};
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN`
[INFO] [stdout]  --> src/strategy/behaviour/move_or_loot.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN};
[INFO] [stdout]   |                              ^^^^^  ^^^                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Loot`
[INFO] [stdout]  --> src/strategy/behaviour/move_or_loot.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::{Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]   --> src/strategy/behaviour/move_or_loot.rs:92:13
[INFO] [stdout]    |
[INFO] [stdout] 92 |             (goal.clone() - unit.position.clone())
[INFO] [stdout]    |             ^                                    ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 92 -             (goal.clone() - unit.position.clone())
[INFO] [stdout] 92 +             goal.clone() - unit.position.clone()
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GREEN` and `TRANSPARENT_BLUE`
[INFO] [stdout]  --> src/strategy/behaviour/run_and_heal.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE};
[INFO] [stdout]   |                              ^^^^^       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `intersects_with_obstacles` and `rotate`
[INFO] [stdout]   --> src/strategy/behaviour/run_and_heal.rs:11:48
[INFO] [stdout]    |
[INFO] [stdout] 11 |     bullet_trace_score, get_projectile_traces, intersects_with_obstacles, rotate,
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env::set_current_dir`
[INFO] [stdout]   --> src/strategy/behaviour/run_and_heal.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::env::set_current_dir;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Obstacle`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::model::{Obstacle, Unit, Vec2, WeaponProperties};
[INFO] [stdout]   |                    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `my_units_magnet_score` and `zone_penalty`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:4:45
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::strategy::behaviour::behaviour::{my_units_magnet_score, zone_penalty};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `intersects_with_obstacles_vec`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::strategy::util::{intersects_with_obstacles_vec, rotate};
[INFO] [stdout]   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `all`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:8:17
[INFO] [stdout]   |
[INFO] [stdout] 8 | use itertools::{all, Itertools};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BLUE` and `RED`
[INFO] [stdout]  --> src/strategy/holder/mod.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::debugging::{BLUE, RED};
[INFO] [stdout]   |                        ^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles_vec`
[INFO] [stdout]  --> src/strategy/holder/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::strategy::util::intersects_with_obstacles_vec;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]   --> src/strategy/holder/mod.rs:58:22
[INFO] [stdout]    |
[INFO] [stdout] 58 |             res.push((x.clone()));
[INFO] [stdout]    |                      ^         ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 58 -             res.push((x.clone()));
[INFO] [stdout] 58 +             res.push(x.clone());
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Vec2`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:1:38
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::model::{Item, Loot, Unit, Vec2};
[INFO] [stdout]   |                                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `my_units_collision_score`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:2:45
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::strategy::behaviour::behaviour::{my_units_collision_score, my_units_magnet_score};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `itertools::Itertools`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use itertools::Itertools;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `libc::clone`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use libc::clone;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Unit`
[INFO] [stdout]  --> src/strategy/potential_field.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::model::{Unit, Vec2};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::debug_interface::DebugInterface`
[INFO] [stdout]  --> src/strategy/util/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::debug_interface::DebugInterface;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]  --> src/strategy/util/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::cmp::min;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::debugging::GREEN`
[INFO] [stdout]  --> src/strategy/mod.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::debugging::GREEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Aim`
[INFO] [stdout]   --> src/strategy/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::model::ActionOrder::Aim;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ActionOrder`, `Constants`, `Game`, `Item`, `Loot`, `Unit`, and `Vec2`
[INFO] [stdout]   --> src/strategy/mod.rs:11:20
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::model::{ActionOrder, Constants, Game, Item, Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]    |                    ^^^^^^^^^^^  ^^^^^^^^^  ^^^^  ^^^^  ^^^^  ^^^^             ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]   --> src/strategy/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::ops::Index;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around function argument
[INFO] [stdout]    --> src/model/unit.rs:142:58
[INFO] [stdout]     |
[INFO] [stdout] 142 |                 let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0)));
[INFO] [stdout]     |                                                          ^                         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 142 -                 let next_vec = rotate(center, cur_angle, (radius * (i as f64 + 1.0)));
[INFO] [stdout] 142 +                 let next_vec = rotate(center, cur_angle, radius * (i as f64 + 1.0));
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Pointer`
[INFO] [stdout]  --> src/model/vec2.rs:3:36
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::fmt::{Display, Formatter, Pointer};
[INFO] [stdout]   |                                    ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Aim`, `Pickup`, and `UseShieldPotion`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:3:33
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::model::ActionOrder::{Aim, Pickup, UseShieldPotion};
[INFO] [stdout]   |                                 ^^^  ^^^^^^  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::model::Item::ShieldPotions`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::Item::ShieldPotions;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ActionOrder` and `Loot`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:5:20
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::model::{ActionOrder, Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]   |                    ^^^^^^^^^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `get_all_enemy_units`, `get_constants`, `get_loot`, `get_obstacles`, and `remove_loot`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 7 |     get_all_enemy_units, get_constants, get_game, get_loot, get_obstacles, remove_loot,
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^            ^^^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::strategy::loot::best_loot`
[INFO] [stdout]  --> src/strategy/behaviour/behaviour.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::strategy::loot::best_loot;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles`
[INFO] [stdout]   --> src/strategy/behaviour/behaviour.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::strategy::util::intersects_with_obstacles;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `itertools::Itertools`
[INFO] [stdout]   --> src/strategy/behaviour/behaviour.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 11 | use itertools::Itertools;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]   --> src/strategy/behaviour/behaviour.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use std::cmp::min;
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TEAL` and `TRANSPARENT_TEAL`
[INFO] [stdout]  --> src/strategy/behaviour/fighting.rs:2:35
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, RED, TEAL, TRANSPARENT_BLUE, TRANSPARENT_TEAL};
[INFO] [stdout]   |                                   ^^^^                    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `WeaponProperties`
[INFO] [stdout]  --> src/strategy/behaviour/fighting.rs:4:53
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::{Obstacle, Unit, UnitOrder, Vec2, WeaponProperties};
[INFO] [stdout]   |                                                     ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `intersects_with_obstacles`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:13:48
[INFO] [stdout]    |
[INFO] [stdout] 13 |     bullet_trace_score, get_projectile_traces, intersects_with_obstacles,
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `all`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout] 16 | use itertools::{all, Itertools};
[INFO] [stdout]    |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `min`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:17:21
[INFO] [stdout]    |
[INFO] [stdout] 17 | use std::cmp::{max, min};
[INFO] [stdout]    |                     ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 | use std::collections::HashMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::fmt`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 | use std::fmt;
[INFO] [stdout]    |     ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Formatter` and `Pointer`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:20:16
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::fmt::{Formatter, Pointer};
[INFO] [stdout]    |                ^^^^^^^^^  ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::path::Display`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:21:5
[INFO] [stdout]    |
[INFO] [stdout] 21 | use std::path::Display;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN};
[INFO] [stdout]   |                              ^^^^^  ^^^                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Pickup`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::model::ActionOrder::Pickup;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Loot`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:4:26
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::{Game, Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]   |                          ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `remove_loot`
[INFO] [stdout]  --> src/strategy/behaviour/ghosting.rs:8:77
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::strategy::holder::{book_loot, get_constants, get_game, get_loot, remove_loot};
[INFO] [stdout]   |                                                                             ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `bullet_trace_score` and `get_projectile_traces`
[INFO] [stdout]   --> src/strategy/behaviour/ghosting.rs:10:29
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::strategy::util::{bullet_trace_score, get_projectile_traces, rotate};
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GREEN`, `RED`, and `TRANSPARENT_GREEN`
[INFO] [stdout]  --> src/strategy/behaviour/move_or_loot.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE, TRANSPARENT_GREEN};
[INFO] [stdout]   |                              ^^^^^  ^^^                    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Loot`
[INFO] [stdout]  --> src/strategy/behaviour/move_or_loot.rs:4:20
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::model::{Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around block return value
[INFO] [stdout]   --> src/strategy/behaviour/move_or_loot.rs:92:13
[INFO] [stdout]    |
[INFO] [stdout] 92 |             (goal.clone() - unit.position.clone())
[INFO] [stdout]    |             ^                                    ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 92 -             (goal.clone() - unit.position.clone())
[INFO] [stdout] 92 +             goal.clone() - unit.position.clone()
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `GREEN` and `TRANSPARENT_BLUE`
[INFO] [stdout]  --> src/strategy/behaviour/run_and_heal.rs:2:30
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::debugging::{BLUE, GREEN, RED, TRANSPARENT_BLUE};
[INFO] [stdout]   |                              ^^^^^       ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `intersects_with_obstacles` and `rotate`
[INFO] [stdout]   --> src/strategy/behaviour/run_and_heal.rs:11:48
[INFO] [stdout]    |
[INFO] [stdout] 11 |     bullet_trace_score, get_projectile_traces, intersects_with_obstacles, rotate,
[INFO] [stdout]    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::env::set_current_dir`
[INFO] [stdout]   --> src/strategy/behaviour/run_and_heal.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::env::set_current_dir;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Obstacle`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:3:20
[INFO] [stdout]   |
[INFO] [stdout] 3 | use crate::model::{Obstacle, Unit, Vec2, WeaponProperties};
[INFO] [stdout]   |                    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `my_units_magnet_score` and `zone_penalty`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:4:45
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::strategy::behaviour::behaviour::{my_units_magnet_score, zone_penalty};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `intersects_with_obstacles_vec`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 | use crate::strategy::util::{intersects_with_obstacles_vec, rotate};
[INFO] [stdout]   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `all`
[INFO] [stdout]  --> src/strategy/holder/fight_sim.rs:8:17
[INFO] [stdout]   |
[INFO] [stdout] 8 | use itertools::{all, Itertools};
[INFO] [stdout]   |                 ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `BLUE` and `RED`
[INFO] [stdout]  --> src/strategy/holder/mod.rs:4:24
[INFO] [stdout]   |
[INFO] [stdout] 4 | use crate::debugging::{BLUE, RED};
[INFO] [stdout]   |                        ^^^^  ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::strategy::util::intersects_with_obstacles_vec`
[INFO] [stdout]  --> src/strategy/holder/mod.rs:9:5
[INFO] [stdout]   |
[INFO] [stdout] 9 | use crate::strategy::util::intersects_with_obstacles_vec;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around method argument
[INFO] [stdout]   --> src/strategy/holder/mod.rs:58:22
[INFO] [stdout]    |
[INFO] [stdout] 58 |             res.push((x.clone()));
[INFO] [stdout]    |                      ^         ^
[INFO] [stdout]    |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]    |
[INFO] [stdout] 58 -             res.push((x.clone()));
[INFO] [stdout] 58 +             res.push(x.clone());
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Vec2`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:1:38
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::model::{Item, Loot, Unit, Vec2};
[INFO] [stdout]   |                                      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `my_units_collision_score`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:2:45
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::strategy::behaviour::behaviour::{my_units_collision_score, my_units_magnet_score};
[INFO] [stdout]   |                                             ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `itertools::Itertools`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use itertools::Itertools;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `libc::clone`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use libc::clone;
[INFO] [stdout]   |     ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/strategy/loot/mod.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Unit`
[INFO] [stdout]  --> src/strategy/potential_field.rs:1:20
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::model::{Unit, Vec2};
[INFO] [stdout]   |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::debug_interface::DebugInterface`
[INFO] [stdout]  --> src/strategy/util/mod.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::debug_interface::DebugInterface;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::min`
[INFO] [stdout]  --> src/strategy/util/mod.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::cmp::min;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::debugging::GREEN`
[INFO] [stdout]  --> src/strategy/mod.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use crate::debugging::GREEN;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::model::ActionOrder::Aim`
[INFO] [stdout]   --> src/strategy/mod.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::model::ActionOrder::Aim;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ActionOrder`, `Constants`, `Game`, `Item`, `Loot`, `Unit`, and `Vec2`
[INFO] [stdout]   --> src/strategy/mod.rs:11:20
[INFO] [stdout]    |
[INFO] [stdout] 11 | use crate::model::{ActionOrder, Constants, Game, Item, Loot, Unit, UnitOrder, Vec2};
[INFO] [stdout]    |                    ^^^^^^^^^^^  ^^^^^^^^^  ^^^^  ^^^^  ^^^^  ^^^^             ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]   --> src/strategy/mod.rs:20:5
[INFO] [stdout]    |
[INFO] [stdout] 20 | use std::ops::Index;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `enemies_around`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:44:13
[INFO] [stdout]    |
[INFO] [stdout] 44 |         let enemies_around = get_all_enemy_units()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemies_around`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unit`
[INFO] [stdout]   --> src/strategy/behaviour/move_or_loot.rs:13:26
[INFO] [stdout]    |
[INFO] [stdout] 13 |     fn should_use(&self, unit: &Unit) -> bool {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_unit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `constants`
[INFO] [stdout]   --> src/strategy/behaviour/move_or_loot.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |         let constants = get_constants();
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/strategy/holder/fight_sim.rs:165:17
[INFO] [stdout]     |
[INFO] [stdout] 165 |             for mut ally in cur_team {
[INFO] [stdout]     |                 ----^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/strategy/holder/fight_sim.rs:172:25
[INFO] [stdout]     |
[INFO] [stdout] 172 |                     for mut enemy in &mut *other_team {
[INFO] [stdout]     |                         ----^^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debug_interface`
[INFO] [stdout]   --> src/strategy/holder/mod.rs:95:30
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn update_units(game: &Game, debug_interface: &mut Option<&mut DebugInterface>) {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `weapon`
[INFO] [stdout]    --> src/strategy/holder/mod.rs:167:17
[INFO] [stdout]     |
[INFO] [stdout] 167 |             let weapon = sound.type_index - 1;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]   --> src/strategy/loot/mod.rs:49:39
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 Item::ShieldPotions { amount } => {
[INFO] [stdout]    |                                       ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]   --> src/strategy/loot/mod.rs:58:21
[INFO] [stdout]    |
[INFO] [stdout] 58 |                     amount,
[INFO] [stdout]    |                     ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]    --> src/strategy/loot/mod.rs:127:31
[INFO] [stdout]     |
[INFO] [stdout] 127 |         Item::ShieldPotions { amount } => {
[INFO] [stdout]     |                               ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]    --> src/strategy/loot/mod.rs:136:13
[INFO] [stdout]     |
[INFO] [stdout] 136 |             amount,
[INFO] [stdout]     |             ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debug`
[INFO] [stdout]   --> src/strategy/mod.rs:43:25
[INFO] [stdout]    |
[INFO] [stdout] 43 |             if let Some(debug) = debug_interface.as_mut() {
[INFO] [stdout]    |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_debug`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `constants`
[INFO] [stdout]   --> src/strategy/mod.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let constants = get_constants();
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `aim` is never read
[INFO] [stdout]    --> src/strategy/holder/fight_sim.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 101 | struct FightProps {
[INFO] [stdout]     |        ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 105 |     aim: f64,
[INFO] [stdout]     |     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `pos` is never read
[INFO] [stdout]  --> src/strategy/potential_field.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct PotentialFieldNode {
[INFO] [stdout]   |            ------------------ field in this struct
[INFO] [stdout] 5 |     pos: Vec2,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `PotentialFieldNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |     unsafe { &FIGHT_SIM_RESULT }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 27 |     unsafe { &raw const FIGHT_SIM_RESULT }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 31 |     unsafe { BOOKED_LOOT.push(id) }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |     unsafe { BOOKED_LOOT.contains(&id) }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:39:14
[INFO] [stdout]    |
[INFO] [stdout] 39 |     unsafe { &CONSTANTS }
[INFO] [stdout]    |              ^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 39 |     unsafe { &raw const CONSTANTS }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 |     unsafe { &GAME }
[INFO] [stdout]    |              ^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 43 |     unsafe { &raw const GAME }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:47:14
[INFO] [stdout]    |
[INFO] [stdout] 47 |     unsafe { &UNITS }
[INFO] [stdout]    |              ^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 47 |     unsafe { &raw const UNITS }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:51:14
[INFO] [stdout]    |
[INFO] [stdout] 51 |     unsafe { &LOOT }
[INFO] [stdout]    |              ^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 51 |     unsafe { &raw const LOOT }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:56:14
[INFO] [stdout]    |
[INFO] [stdout] 56 |     for x in &LOOT_TO_TICK {
[INFO] [stdout]    |              ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 56 |     for x in &raw const LOOT_TO_TICK {
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:62:21
[INFO] [stdout]    |
[INFO] [stdout] 62 |     unsafe { LOOT = LOOT_TO_TICK.iter().map(|e| e.1.clone()).collect_vec() };
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:66:14
[INFO] [stdout]    |
[INFO] [stdout] 66 |     unsafe { &PROJECTILES }
[INFO] [stdout]    |              ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 66 |     unsafe { &raw const PROJECTILES }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:74:14
[INFO] [stdout]    |
[INFO] [stdout] 74 |     unsafe { &NEAREST_OBSTACLES }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 74 |     unsafe { &raw const NEAREST_OBSTACLES }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 |     unsafe { BOOKED_LOOT.clear() }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:101:23
[INFO] [stdout]     |
[INFO] [stdout] 101 |     for x in unsafe { &UNIT_TO_TICK } {
[INFO] [stdout]     |                       ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 101 |     for x in unsafe { &raw const UNIT_TO_TICK } {
[INFO] [stdout]     |                        +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:190:23
[INFO] [stdout]     |
[INFO] [stdout] 190 |     for x in unsafe { &LOOT_TO_TICK } {
[INFO] [stdout]     |                       ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 190 |     for x in unsafe { &raw const LOOT_TO_TICK } {
[INFO] [stdout]     |                        +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:207:23
[INFO] [stdout]     |
[INFO] [stdout] 207 |     for x in unsafe { &PROJECTILES } {
[INFO] [stdout]     |                       ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 207 |     for x in unsafe { &raw const PROJECTILES } {
[INFO] [stdout]     |                        +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:266:9
[INFO] [stdout]     |
[INFO] [stdout] 266 |         NEAREST_OBSTACLES.clear();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:283:32
[INFO] [stdout]     |
[INFO] [stdout] 283 |         .for_each(|x| unsafe { NEAREST_OBSTACLES.push(x) });
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `enemies_around`
[INFO] [stdout]   --> src/strategy/behaviour/fighting.rs:44:13
[INFO] [stdout]    |
[INFO] [stdout] 44 |         let enemies_around = get_all_enemy_units()
[INFO] [stdout]    |             ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_enemies_around`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `unit`
[INFO] [stdout]   --> src/strategy/behaviour/move_or_loot.rs:13:26
[INFO] [stdout]    |
[INFO] [stdout] 13 |     fn should_use(&self, unit: &Unit) -> bool {
[INFO] [stdout]    |                          ^^^^ help: if this is intentional, prefix it with an underscore: `_unit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `constants`
[INFO] [stdout]   --> src/strategy/behaviour/move_or_loot.rs:21:13
[INFO] [stdout]    |
[INFO] [stdout] 21 |         let constants = get_constants();
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/strategy/holder/fight_sim.rs:165:17
[INFO] [stdout]     |
[INFO] [stdout] 165 |             for mut ally in cur_team {
[INFO] [stdout]     |                 ----^^^^
[INFO] [stdout]     |                 |
[INFO] [stdout]     |                 help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/strategy/holder/fight_sim.rs:172:25
[INFO] [stdout]     |
[INFO] [stdout] 172 |                     for mut enemy in &mut *other_team {
[INFO] [stdout]     |                         ----^^^^^
[INFO] [stdout]     |                         |
[INFO] [stdout]     |                         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debug_interface`
[INFO] [stdout]   --> src/strategy/holder/mod.rs:95:30
[INFO] [stdout]    |
[INFO] [stdout] 95 | fn update_units(game: &Game, debug_interface: &mut Option<&mut DebugInterface>) {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `weapon`
[INFO] [stdout]    --> src/strategy/holder/mod.rs:167:17
[INFO] [stdout]     |
[INFO] [stdout] 167 |             let weapon = sound.type_index - 1;
[INFO] [stdout]     |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_weapon`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]   --> src/strategy/loot/mod.rs:49:39
[INFO] [stdout]    |
[INFO] [stdout] 49 |                 Item::ShieldPotions { amount } => {
[INFO] [stdout]    |                                       ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]   --> src/strategy/loot/mod.rs:58:21
[INFO] [stdout]    |
[INFO] [stdout] 58 |                     amount,
[INFO] [stdout]    |                     ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]    --> src/strategy/loot/mod.rs:127:31
[INFO] [stdout]     |
[INFO] [stdout] 127 |         Item::ShieldPotions { amount } => {
[INFO] [stdout]     |                               ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `amount`
[INFO] [stdout]    --> src/strategy/loot/mod.rs:136:13
[INFO] [stdout]     |
[INFO] [stdout] 136 |             amount,
[INFO] [stdout]     |             ^^^^^^ help: try ignoring the field: `amount: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debug`
[INFO] [stdout]   --> src/strategy/mod.rs:43:25
[INFO] [stdout]    |
[INFO] [stdout] 43 |             if let Some(debug) = debug_interface.as_mut() {
[INFO] [stdout]    |                         ^^^^^ help: if this is intentional, prefix it with an underscore: `_debug`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `constants`
[INFO] [stdout]   --> src/strategy/mod.rs:24:9
[INFO] [stdout]    |
[INFO] [stdout] 24 |     let constants = get_constants();
[INFO] [stdout]    |         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constants`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `aim` is never read
[INFO] [stdout]    --> src/strategy/holder/fight_sim.rs:105:5
[INFO] [stdout]     |
[INFO] [stdout] 101 | struct FightProps {
[INFO] [stdout]     |        ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 105 |     aim: f64,
[INFO] [stdout]     |     ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `pos` is never read
[INFO] [stdout]  --> src/strategy/potential_field.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct PotentialFieldNode {
[INFO] [stdout]   |            ------------------ field in this struct
[INFO] [stdout] 5 |     pos: Vec2,
[INFO] [stdout]   |     ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `PotentialFieldNode` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |     unsafe { &FIGHT_SIM_RESULT }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 27 |     unsafe { &raw const FIGHT_SIM_RESULT }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:31:14
[INFO] [stdout]    |
[INFO] [stdout] 31 |     unsafe { BOOKED_LOOT.push(id) }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:35:14
[INFO] [stdout]    |
[INFO] [stdout] 35 |     unsafe { BOOKED_LOOT.contains(&id) }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:39:14
[INFO] [stdout]    |
[INFO] [stdout] 39 |     unsafe { &CONSTANTS }
[INFO] [stdout]    |              ^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 39 |     unsafe { &raw const CONSTANTS }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:43:14
[INFO] [stdout]    |
[INFO] [stdout] 43 |     unsafe { &GAME }
[INFO] [stdout]    |              ^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 43 |     unsafe { &raw const GAME }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:47:14
[INFO] [stdout]    |
[INFO] [stdout] 47 |     unsafe { &UNITS }
[INFO] [stdout]    |              ^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 47 |     unsafe { &raw const UNITS }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:51:14
[INFO] [stdout]    |
[INFO] [stdout] 51 |     unsafe { &LOOT }
[INFO] [stdout]    |              ^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 51 |     unsafe { &raw const LOOT }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:56:14
[INFO] [stdout]    |
[INFO] [stdout] 56 |     for x in &LOOT_TO_TICK {
[INFO] [stdout]    |              ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 56 |     for x in &raw const LOOT_TO_TICK {
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:62:21
[INFO] [stdout]    |
[INFO] [stdout] 62 |     unsafe { LOOT = LOOT_TO_TICK.iter().map(|e| e.1.clone()).collect_vec() };
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:66:14
[INFO] [stdout]    |
[INFO] [stdout] 66 |     unsafe { &PROJECTILES }
[INFO] [stdout]    |              ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 66 |     unsafe { &raw const PROJECTILES }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:74:14
[INFO] [stdout]    |
[INFO] [stdout] 74 |     unsafe { &NEAREST_OBSTACLES }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]    |
[INFO] [stdout] 74 |     unsafe { &raw const NEAREST_OBSTACLES }
[INFO] [stdout]    |               +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]   --> src/strategy/holder/mod.rs:82:14
[INFO] [stdout]    |
[INFO] [stdout] 82 |     unsafe { BOOKED_LOOT.clear() }
[INFO] [stdout]    |              ^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:101:23
[INFO] [stdout]     |
[INFO] [stdout] 101 |     for x in unsafe { &UNIT_TO_TICK } {
[INFO] [stdout]     |                       ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 101 |     for x in unsafe { &raw const UNIT_TO_TICK } {
[INFO] [stdout]     |                        +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:190:23
[INFO] [stdout]     |
[INFO] [stdout] 190 |     for x in unsafe { &LOOT_TO_TICK } {
[INFO] [stdout]     |                       ^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 190 |     for x in unsafe { &raw const LOOT_TO_TICK } {
[INFO] [stdout]     |                        +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:207:23
[INFO] [stdout]     |
[INFO] [stdout] 207 |     for x in unsafe { &PROJECTILES } {
[INFO] [stdout]     |                       ^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] help: use `&raw const` instead to create a raw pointer
[INFO] [stdout]     |
[INFO] [stdout] 207 |     for x in unsafe { &raw const PROJECTILES } {
[INFO] [stdout]     |                        +++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:266:9
[INFO] [stdout]     |
[INFO] [stdout] 266 |         NEAREST_OBSTACLES.clear();
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a mutable reference to mutable static
[INFO] [stdout]    --> src/strategy/holder/mod.rs:283:32
[INFO] [stdout]     |
[INFO] [stdout] 283 |         .for_each(|x| unsafe { NEAREST_OBSTACLES.push(x) });
[INFO] [stdout]     |                                ^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Color`
[INFO] [stdout]  --> src/my_strategy.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ai_cup_22::debugging::{Color, BLUE, GREEN, RED, TEAL, TRANSPARENT_GREEN, YELLOW};
[INFO] [stdout]   |                            ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ai_cup_22::model::ActionOrder::Aim`
[INFO] [stdout]  --> src/my_strategy.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ai_cup_22::model::ActionOrder::Aim;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UnitOrder`
[INFO] [stdout]  --> src/my_strategy.rs:4:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ai_cup_22::model::{Constants, Game, UnitOrder, Vec2};
[INFO] [stdout]   |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `itertools::Itertools`
[INFO] [stdout]   --> src/my_strategy.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use itertools::Itertools;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]   --> src/my_strategy.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::collections::HashMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64::consts::PI`
[INFO] [stdout]   --> src/my_strategy.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::f64::consts::PI;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicPtr`
[INFO] [stdout]   --> src/my_strategy.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::atomic::AtomicPtr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH`
[INFO] [stdout]   --> src/my_strategy.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout] 16 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stdout]    |                 ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Color`
[INFO] [stdout]  --> src/my_strategy.rs:2:28
[INFO] [stdout]   |
[INFO] [stdout] 2 | use ai_cup_22::debugging::{Color, BLUE, GREEN, RED, TEAL, TRANSPARENT_GREEN, YELLOW};
[INFO] [stdout]   |                            ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `displayed_tick`
[INFO] [stdout]    --> src/my_strategy.rs:128:36
[INFO] [stdout]     |
[INFO] [stdout] 128 |     pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {}
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_displayed_tick`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debug_interface`
[INFO] [stdout]    --> src/my_strategy.rs:128:57
[INFO] [stdout]     |
[INFO] [stdout] 128 |     pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {}
[INFO] [stdout]     |                                                         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ai_cup_22::model::ActionOrder::Aim`
[INFO] [stdout]  --> src/my_strategy.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use ai_cup_22::model::ActionOrder::Aim;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UnitOrder`
[INFO] [stdout]  --> src/my_strategy.rs:4:41
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ai_cup_22::model::{Constants, Game, UnitOrder, Vec2};
[INFO] [stdout]   |                                         ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `itertools::Itertools`
[INFO] [stdout]   --> src/my_strategy.rs:12:5
[INFO] [stdout]    |
[INFO] [stdout] 12 | use itertools::Itertools;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]   --> src/my_strategy.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout] 13 | use std::collections::HashMap;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::f64::consts::PI`
[INFO] [stdout]   --> src/my_strategy.rs:14:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | use std::f64::consts::PI;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::sync::atomic::AtomicPtr`
[INFO] [stdout]   --> src/my_strategy.rs:15:5
[INFO] [stdout]    |
[INFO] [stdout] 15 | use std::sync::atomic::AtomicPtr;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SystemTime` and `UNIX_EPOCH`
[INFO] [stdout]   --> src/my_strategy.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout] 16 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stdout]    |                 ^^^^^^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `draw_vision`, `draw_projectiles`, `draw_obstacles`, and `draw_loot` are never used
[INFO] [stdout]   --> src/my_strategy.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl MyStrategy {
[INFO] [stdout]    | --------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     fn draw_vision(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 79 |     fn draw_projectiles(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 85 |     fn draw_obstacles(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     fn draw_loot(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:50:24
[INFO] [stdout]    |
[INFO] [stdout] 50 |     fn debug_interface(&mut self) -> DebugInterface {
[INFO] [stdout]    |                        ^^^^^^^^^     ^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 50 |     fn debug_interface(&mut self) -> DebugInterface<'_> {
[INFO] [stdout]    |                                                    ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `displayed_tick`
[INFO] [stdout]    --> src/my_strategy.rs:128:36
[INFO] [stdout]     |
[INFO] [stdout] 128 |     pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {}
[INFO] [stdout]     |                                    ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_displayed_tick`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `debug_interface`
[INFO] [stdout]    --> src/my_strategy.rs:128:57
[INFO] [stdout]     |
[INFO] [stdout] 128 |     pub fn debug_update(&mut self, displayed_tick: i32, debug_interface: &mut DebugInterface) {}
[INFO] [stdout]     |                                                         ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_debug_interface`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `draw_vision`, `draw_projectiles`, `draw_obstacles`, and `draw_loot` are never used
[INFO] [stdout]   --> src/my_strategy.rs:52:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl MyStrategy {
[INFO] [stdout]    | --------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 52 |     fn draw_vision(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 79 |     fn draw_projectiles(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 85 |     fn draw_obstacles(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 93 |     fn draw_loot(debug: &mut DebugInterface) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stdout]   --> src/main.rs:50:24
[INFO] [stdout]    |
[INFO] [stdout] 50 |     fn debug_interface(&mut self) -> DebugInterface {
[INFO] [stdout]    |                        ^^^^^^^^^     ^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]    |                        |
[INFO] [stdout]    |                        the lifetime is elided here
[INFO] [stdout]    |
[INFO] [stdout]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]    = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: use `'_` for type paths
[INFO] [stdout]    |
[INFO] [stdout] 50 |     fn debug_interface(&mut self) -> DebugInterface<'_> {
[INFO] [stdout]    |                                                    ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 18.42s
[INFO] running `Command { std: "docker" "inspect" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0", kill_on_drop: false }`
[INFO] [stdout] fc61276642c59374f66e735cb232a245292f6ce9bb76b2d6ac8bdab136fbc0e0
